POV-Ray : Newsgroups : povray.general : Parametric object with shadow gets black : Parametric object with shadow gets black Server Time
17 Nov 2024 05:16:01 EST (-0500)
  Parametric object with shadow gets black  
From: Wolfgang Wieser
Date: 18 Jun 2003 13:08:59
Message: <3ef09caa@news.povray.org>
Just came from visualizing the strength of the magneric field in 
a cylindrical cavity when I wanted to do the final rendering 
without the no_shadow keywoard. (I am using it for speed's sake 
when testing). 

However, it turned out that the complete object gets black in that 
case. Is this a bug or a self-shadowing problem? 
What can I do against that?

(Quality setting was +Q9, of course...)

Wolfgang

Image (with no_shadow keywoard): 
http://www.cip.physik.uni-muenchen.de/~wwieser/cavity3.png

Code:
#include "functions.inc"

global_settings { assumed_gamma 2.2 }

light_source { <0,1,0>*20, rgb <2,2,2>/2 }
light_source { <0.2,1,-0.8>*20, rgb <2,2,2>/1.7 }

#declare f_besselJ = function { internal(81) }
#declare f_besselJD = function { internal(82) }
#declare f_CAVITY = function { internal(83) }

#declare m=3;
#declare param_obj = 
parametric {
        function { u*sin(v) }
        //function { 25*sqrt(pow(sin(m*v)*f_besselJ(u,0,0,m),2)+
        //      pow(cos(m*v)*m/u*f_besselJD(u,0,0,m),2)) }
        function { 25*f_CAVITY(u,v,0,m) }
        function { u*cos(v) }
        <0.00000001,0>, <15,2*pi>
        contained_by {  sphere { 0, 15 }  }
        precompute 16 x,y,z
        //no_shadow
        scale 0.2
}

object {
        param_obj
        texture { pigment { color rgb <0,1,0> } }
        rotate -20*y rotate -20*x scale 1.4 translate -0.2*y
}
plane { y,-3.2  pigment { rgb .6 } }
camera {  location <0,0.3,-1>*8.3 up y  look_at <0,0,0> }


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.